﻿	

#region Using Directives
using System;
using System.ComponentModel;
using System.Collections;
using System.Xml.Serialization;
using System.Data;
using NetROS.Tiers.Data.Bases;
using NetROS.Tiers.Entities;
using NetROS.Tiers.Entities.Validation;

using NetROS.Tiers.Data;
using Microsoft.Practices.EnterpriseLibrary.Logging;

#endregion

namespace NetROS.Tiers.Services
{		
	
	///<summary>
	/// An component type implementation of the 'tblKnjizenjeStavka' table.
	///</summary>
	/// <remarks>
	/// All custom implementations should be done here.
	/// </remarks>
	[CLSCompliant(true)]
	public partial class KnjizenjeStavkaService : NetROS.Tiers.Services.KnjizenjeStavkaServiceBase
	{
		/// <summary>
		/// Initializes a new instance of the KnjizenjeStavkaService class.
		/// </summary>
		public KnjizenjeStavkaService() : base()
		{
		}
        ///<summary>
        ///</summary>
        ///<param name="filter"></param>
        ///<param name="parametri"></param>
        ///<param name="UDatumDokOd"></param>
        ///<param name="UDatumDokDo"></param>
        ///<param name="UDatumDokDosOd"></param>
        ///<param name="UDatumDokDosDo"></param>
        ///<returns></returns>
        public TList<KnjizenjeStavka> TraziStavke_DSQL_TList(System.String @filter, System.String @parametri, System.DateTime? @UDatumDokOd, System.DateTime? @UDatumDokDo, System.DateTime? @UDatumDokDosOd, System.DateTime? @UDatumDokDosDo)
        {
            IDataReader reader = null;
            reader =
                TraziStavke_DSQL(@filter, @parametri, @UDatumDokOd, @UDatumDokDo, @UDatumDokDosOd,
                                          @UDatumDokDosDo);
            NetROS.Tiers.Entities.TList<KnjizenjeStavka> rows = new NetROS.Tiers.Entities.TList<KnjizenjeStavka>();
            try
            {
                KnjizenjeStavkaProviderBaseCore.Fill(reader, rows, 0, 10000);
            }
            finally
            {
                if (reader != null)
                    reader.Close();
            }
            return rows;
        }

        ///<summary>
        ///</summary>
        ///<param name="filter"></param>
        ///<param name="parametri"></param>
        ///<param name="UDatumDokOd"></param>
        ///<param name="UDatumDokDo"></param>
        ///<param name="UDatumDokDosOd"></param>
        ///<param name="UDatumDokDosDo"></param>
        ///<returns></returns>
        public TList<KnjizenjeStavka> TraziStavke_Otvorene_DSQL_TList(System.String @filter, System.String @parametri, System.DateTime? @UDatumDokOd, System.DateTime? @UDatumDokDo, System.DateTime? @UDatumDokDosOd, System.DateTime? @UDatumDokDosDo)
        {
            IDataReader reader = null;
            reader =
                TraziStavke_Otvorene_DSQL(@filter, @parametri, @UDatumDokOd, @UDatumDokDo, @UDatumDokDosOd,
                                          @UDatumDokDosDo);
            NetROS.Tiers.Entities.TList<KnjizenjeStavka> rows = new NetROS.Tiers.Entities.TList<KnjizenjeStavka>();
            try
            {
                KnjizenjeStavkaProviderBaseCore.Fill(reader, rows, 0, 10000);
            }
            finally
            {
                if (reader != null)
                    reader.Close();
            }
            return rows;
        }
        

	    //public TList<KnjizenjeStavka> TraziStavke_Otvorene_DSQL(System.String @filter, System.String @parametri, System.DateTime? @UDatumDokOd, System.DateTime? @UDatumDokDo, System.DateTime? @UDatumDokDosOd, System.DateTime? @UDatumDokDosDo)
        //{
        //    IDataReader reader = null;
        //    reader =
        //        TraziStavke_Otvorene_DSQL(@filter, @parametri, @UDatumDokOd, @UDatumDokDo, @UDatumDokDosOd,
        //                                  @UDatumDokDosDo);

		

        //}
		
	}//End Class


} // end namespace
